/*
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

 
import java.awt.Image;
import javax.swing.ImageIcon;

/**
 *
 * @author gabriel
 * Clyde. Él no persigue a Pac-Man, si no que deambula sin una ruta
 * especifica.
 */
public class Clyde extends Fantasma{
    
    private String nombre; //Blinky, 
    private boolean miedo;
    private int x,y;
    private String ghostPath = "/resources/clyde_up.jpeg";
    private Image ghostImage;
    
    
     public Clyde(int x, int y) { 
        ImageIcon gii = new ImageIcon(this.getClass().getResource(ghostPath));
        ghostImage = gii.getImage();       
        this.miedo = false;
        this.nombre = "Shadow (Blinky)"; 
        this.x = x;
        this.y = y;
    }
     
     
    /**
     * Clyde. Él no persigue a Pac-Man, si no que deambula sin una ruta
     * especifica.
     *
     */
     @Override
    public void avanza(Mapa map) {
       super.avanza(map);
        System.out.println("Clyde se mueve");
    }
     
      public Image getGhostImage() {
        return ghostImage;
    }

    public void setGhostImage(Image ghostImage) {
        this.ghostImage = ghostImage;
    }  
    
     public String getGhostPath() {
        return ghostPath!=null ? ghostPath:"Ruta imagen "+ this.getClass().getName() +" = null";
    }

    public void setGhostPath(String ghostPath) {
        this.ghostPath = ghostPath;
    }
    
}
